Fix frame focus tracking under Android
authorPo Lu <luangruo@yahoo.com>
Mon, 5 Feb 2024 10:34:22 +0000 (18:34 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 5 Feb 2024 10:34:22 +0000 (18:34 +0800)
commitc1f8fe09e6641cc6c1195edcb8666ace1e6e8829
tree7b9eef95a1585e1f71dff55d0cf7e8d85930cdc9
parent98d62c5f7675b24ad66e010765ce3012046f2ff8
Fix frame focus tracking under Android

* java/org/gnu/emacs/EmacsActivity.java (invalidateFocus): New
argument WHENCE, a unique number identifying the circumstances
leading up to the call.  All callers changed.
(attachWindow): Call `invalidateFocus' from the UI thread.
(onWindowFocusChanged): Don't remove activity from
`focusedActivities' if it already exists should `hasWindowFocus'
return true.
java/org/gnu/emacs/EmacsActivity.java
java/org/gnu/emacs/EmacsWindow.java